angular.module('furion.core.route.accounts', [])

.config ($stateProvider, $urlRouterProvider, $ionicConfigProvider) ->
  
  $stateProvider

  .state 'app.account',
    url: '/accounts'
    views: 'account':
      templateUrl: 'templates/tabs/tab-account.html'
      controller: 'AccountCtrl'

  #account
  .state 'settings',
    url: '/settings'
    templateUrl: 'templates/accounts/settings.html'
    controller: 'SettingsCtrl'

  #albums
  .state 'albums',
    url: '/albums'
    templateUrl: 'templates/accounts/albums.html'
    controller: 'AlbumsCtrl'

  #records
  .state 'my-records',
    url: '/my-records'
    templateUrl: 'templates/accounts/my-records.html'
    controller: 'RecordsCtrl'

  #favorite
  .state 'favorite',
    url: '/favorite'
    templateUrl: 'templates/accounts/favorite.html'
    controller: 'FavoriteCtrl'

  #remind
  .state 'remind',
    url: '/remind'
    templateUrl: 'templates/accounts/remind.html'
    controller: 'RemindCtrl'

  .state 'nickname',
    url: '/nickname'
    templateUrl: 'templates/accounts/nickname.html'
    controller: 'NickNameCtrl'

  .state 'change-pay-password',
    url: '/change-pay-password'
    templateUrl: 'templates/accounts/change-pay-password.html'
    controller: 'ChangePayPasswordCtrl'
  .state 'forget-pay-password',
    url: '/forget-pay-password'
    templateUrl: 'templates/accounts/forget-pay-password.html'
    controller: 'ForgetPayPasswordCtrl'

  .state 'pay-password',
    url: '/pay-password'
    templateUrl: 'templates/accounts/pay-password.html'
    controller: 'PayPasswordCtrl'

  .state 'gesture-login',
    url: '/gesture-login'
    templateUrl: 'templates/accounts/gesture-login.html'
    controller: 'GestureLoginCtrl'

  .state 'gesture-setting',
    url: '/gesture-setting'
    templateUrl: 'templates/accounts/gesture-setting.html'
    controller: 'GestureSettingCtrl'

  .state 'gesture-password',
    url: '/gesture-password'
    templateUrl: 'templates/accounts/gesture-password.html'
    controller: 'GesturePasswordCtrl'

  # if none of the above states are matched, use this as the fallback
  # $urlRouterProvider.otherwise '/welcome'

  return # .config ($stateProvider, $urlRouterProvider) ->
